package com.sjl.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.sjl.util.PoiHandler;

import java.io.Serializable;

/**
 * 
 * @author 宋嘉霖
 *
 */

public class Teachers implements Serializable {
    @PoiHandler(excelIgnore = true)
    private static final long serialVersionUID = 1L;

    /**
     * 老师id
     */
    @TableId(value = "teachers_id", type = IdType.AUTO)
    @PoiHandler(excelHeader = "老师编号")
    private Integer teachersId;

    /**
     * 老师卡号
     */
    @PoiHandler(excelHeader = "老师卡号")
    private String teachersCardNo;

    /**
     * 老师姓名
     */
    @PoiHandler(excelHeader = "老师姓名")
    private String teachersName;

    /**
     * 老师性别
     */
    @PoiHandler(excelHeader = "老师性别")
    private String teachersSex;

    /**
     * 科室ID
     */
    @PoiHandler(excelHeader = "科室ID")
    private Integer sectionsId;

    /**
     * 0：正常   >0：所在的阅览室id
     */
    @PoiHandler(excelHeader = "所在的阅览室id")
    private Integer teachersStatus;

    /**
     * 老师备注
     */
    @PoiHandler(excelHeader = "老师备注")
    private String teachersRemark;
    @PoiHandler(excelHeader = "附加1")
    private String teachersTest1;
    @PoiHandler(excelHeader = "附加2")
    private Integer teacherstEst2;

    @TableLogic
    @PoiHandler(excelHeader = "是否删除")
    private String isDelete;
    @TableField(exist = false) // 该列不与数据库匹配
    private Sections sections;// 多对一

    public Teachers() {
    }

    public Teachers(Integer teachersId, String teachersCardNo, String teachersName, String teachersSex, Integer sectionsId, Integer teachersStatus, String teachersRemark, String teachersTest1, Integer teacherstEst2, String isDelete, Sections sections) {
        this.teachersId = teachersId;
        this.teachersCardNo = teachersCardNo;
        this.teachersName = teachersName;
        this.teachersSex = teachersSex;
        this.sectionsId = sectionsId;
        this.teachersStatus = teachersStatus;
        this.teachersRemark = teachersRemark;
        this.teachersTest1 = teachersTest1;
        this.teacherstEst2 = teacherstEst2;
        this.isDelete = isDelete;
        this.sections = sections;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getTeachersId() {
        return teachersId;
    }

    public void setTeachersId(Integer teachersId) {
        this.teachersId = teachersId;
    }

    public String getTeachersCardNo() {
        return teachersCardNo;
    }

    public void setTeachersCardNo(String teachersCardNo) {
        this.teachersCardNo = teachersCardNo;
    }

    public String getTeachersName() {
        return teachersName;
    }

    public void setTeachersName(String teachersName) {
        this.teachersName = teachersName;
    }

    public String getTeachersSex() {
        return teachersSex;
    }

    public void setTeachersSex(String teachersSex) {
        this.teachersSex = teachersSex;
    }

    public Integer getSectionsId() {
        return sectionsId;
    }

    public void setSectionsId(Integer sectionsId) {
        this.sectionsId = sectionsId;
    }

    public Integer getTeachersStatus() {
        return teachersStatus;
    }

    public void setTeachersStatus(Integer teachersStatus) {
        this.teachersStatus = teachersStatus;
    }

    public String getTeachersRemark() {
        return teachersRemark;
    }

    public void setTeachersRemark(String teachersRemark) {
        this.teachersRemark = teachersRemark;
    }

    public String getTeachersTest1() {
        return teachersTest1;
    }

    public void setTeachersTest1(String teachersTest1) {
        this.teachersTest1 = teachersTest1;
    }

    public Integer getTeacherstEst2() {
        return teacherstEst2;
    }

    public void setTeacherstEst2(Integer teacherstEst2) {
        this.teacherstEst2 = teacherstEst2;
    }

    public String getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(String isDelete) {
        this.isDelete = isDelete;
    }

    public Sections getSections() {
        return sections;
    }

    public void setSections(Sections sections) {
        this.sections = sections;
    }
}
